package edu.sctu.practice.class02.lvchang.test26;

/**
 * Created by Administrator on 2015/11/1.
 */
public class Employee extends Role {

    private int salary;
    private static String ID;//职工编号

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public String getID() {
        return ID;
    }

    public void setID(String id) {
        ID = id;
    }


    public Employee(int age, String id) {
        super(age);
        setID(id);
    }

    public Employee(int age, String name, int salary, String id) {
        this(age, id);
        this.setName(name);
        setSalary(salary);
    }

    @Override
    public void play() {
        System.out.println("*******职工信息*******");
        System.out.println("编号：" + getID());
        System.out.println("姓名：" + getName());
        System.out.println("年龄：" + getAge());
        System.out.println("工资：" + getSalary());
    }

    public static void sing() {

    }
}
